<?php


namespace app\admin\validate;

class AttributeValidate extends BaseValidate
{
    protected $rule = [
        'name' => 'require',
        'pid' => 'require|isPositiveIntegerOrZero',
    ];

    protected $message = [
        'name.require' => '请输入属性名',
        'pid.require' => '请选择上级属性',
        'pid.isPositiveIntegerOrZero' => '请选择上级属性',
    ];
}